package com.ncr.travel.appmgr.model;

import java.util.List;

import org.codehaus.jackson.map.annotate.JsonDeserialize;

import com.ncr.travel.appmgr.model.shared.ProductCategory;

/**
 * @author as185325
 * 
 */
public class ProductJson implements com.ncr.travel.appmgr.model.shared.Product {

	private Integer id;
	private String name;
	private String key;
	private String themeId;
	private List<ProductCategory> categories;

	public ProductJson() {
	}

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String getKey() {
		return key;
	}

	@Override
	public void setKey(String key) {
		this.key = key;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getThemeId() {
		return themeId;
	}

	@Override
	public void setThemeId(String themeId) {
		this.themeId = themeId;
	}

	@Override
	public List<ProductCategory> getCategories() {
		return categories;
	}

	@Override
	@JsonDeserialize(as = ProductCategoryJson.class)
	public void setCategories(List<ProductCategory> categories) {
		this.categories = categories;
	}

}
